package designPattern.proxy;

/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class Proxy implements SourceAble{
    private Source source;

    public Proxy(){
        super();
        this.source = new Source();
    }

    public void method() {
        System.out.println("begore");
        source.method();
        System.out.println("after");
    }
}
